<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
{eval $user=$this->user; $setting=$this->setting;}
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>Tipask's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset={TIPASK_CHARSET}">
<link media="all" type="text/css" href="css/common/admin/admincp.css" rel="stylesheet" />
<script src="js/admin.js" type="text/javascript"></script>
</head>

<body>

<div id="append">
</div>
<div class="container">

	<!--{if isset($message)}-->
		<!--{eval $type=isset($type)?$type:'correctmsg'; }-->
		<div class="{$type}"><p>{$message}</p></div>
	<!--{/if}-->
	
	<h3>广告列表 <a href="index.php?admin_ad/add{$setting['seo_suffix']}" class="sgbtn">添加广告</a> </h3>
	<div class="mainbox">
	<form onsubmit="return confirm('该操作不可恢复，您确认要删除这些广告吗？');"  action="index.php?admin_ad/remove{$setting['seo_suffix']}"  method=post>
		<table class="datalist fixwidth">
			<tr>
				<th width="10%" <input class="checkbox" id="chkall" onclick="checkall('advid[]')" type="checkbox" name="chkall"><label for="chkall">删除</label></th>
				<th width="10%">状态操作</th>
				<th width="20%">标题</th>
				<th width="20%">类型</th>
				<th width="10%">样式</th>
				<th width="10%">起始时间</th>
				<th width="10%">终止时间</th>
				<th width="10%">编辑</th>
			</tr>
			{loop $adlist $ad}
			<tr>
				<td width="10%" class="option"><input class="checkbox" type="checkbox" value="{$ad['advid']}" name="advid[]"></td>
				<td width="10%"><a href="index.php?admin_ad/available/$ad['advid']/$ad['available']{$setting['seo_suffix']}" style="color:green">{if $ad['available']}禁用{else}启用{/if}</a></td>
				<td width="20%"><strong>{$ad['title']}</strong></td>
				<td width="20%">{$typelist[$ad['type']]}</td>
				<td width="10%">{$stylelist[$ad['parameters']['style']]}</td>
				<td width="10%">{if $ad['starttime']}$ad['fstarttime']{/if}</td>
				<td width="10%">{if $ad['endtime']}$ad['fendtime']{/if}</td>
				<td width="10%"><a href="index.php?admin_ad/edit/$ad['advid']{$setting['seo_suffix']}">编辑</a></td>
			</tr>
			{/loop}
				<tr class="nobg">
					<td><input class="btn" type="submit" name="submit" value="提 交"></td>
					<td class="tdpage" colspan="6"><div class="pages">{$departstr}</div></td>
				</tr>
		</table>
	</div>
</form>
</div>

</body>

</html>
